package com.ces.knacky.controller.tools;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ces.knacky.framework.controller.ListController;

@Controller
public class ListAuctionController<Auction> extends ListController<Auction> {

	@RequestMapping("/listAuction.htm")
	public String execute(){
		listEntity = (List<Auction>) commonService.list("SELECT auction from Auction auction where "
		+ "auction.flag.id = 1 AND auction.auctionStatus.id = 1 ORDER BY auction.id DESC");
		return "listAuction";
	}
	

}
